package com.sleet.yuemiao.enum0;

/**
 * @ProjectName: bigshark
 * @Package: com.ningze.webber.bigshark.aems.enums
 * @ClassName: ServiceCodeEnum
 * @Author: yangjianwu
 * @Description: 异常信息枚举类
 * @Date: 2021/5/10 16:32
 */

public enum ServiceCodeEnum {
    SUCCESS(0, "成功"),
    FAIL(-1, "失败"),
    ERROR(9999, "服务异常"),
    NO_VALID_PARAM(1001, "参数不完整"),
    SIGN_EXPIRE(1001, "签名已失效"),
    ENCRYPT_MD5_ERROR(1002, "生成签名失败"),
    SIGN_VALID_FAIL(1003, "签名验证失败"),
    ENCRYPT_ERROR(2001, "加密失败"),
    DECRYPT_ERROR(2002, "解密失败"),
    UPDATE_BASE_INFO_PARAM(2003, "修改注册信息参数异常"),
    REGISTER_LOGIN_ERROR(2004, "注册登录发生异常"),
    FIND_BY_PHONE_ERROR(2005, "根据手机号未查到对应用户信息"),
    OUT_BOUND_SERVICE_OFF(2006, "服务已关闭，请24小时之后重试"),
    OUT_BOUND_CUST_INFO_NON_EXIST(2007, "客户信息不存在"),
    OUT_BOUND_RESP_ERROR(2099, "服务发生异常"),


    DATABASE_ERROR(8001, "操作数据库失败"),
    ACTIVITY_ERROR(8002, "活动不存在"),
    ACTIVITY_NAME_EXIST(8003, "活动名重复"),
    ACTIVITY_NO_EDIT(8004, "当前活动状态不可修改，请先下架活动"),
    ACTIVITY_NO_DEL(8005, "活动当前状态不可删除"),
    ACTIVITY_SYNC_BANK_ERROR(8006, "活动数据同步行方失败"),
    ACTIVITY_CACHE_ERROR(8007, "活动数据同步行方失败"),
    ACTIVITY_DRAW_SIZE_ERROR(8008, "活动奖项数量配置错误"),
    ACTIVITY_DRAW_INFO_ERROR(8009, "活动权益信息查询失败"),
    ACTIVITY_DRAW_TIME_ERROR(8010, "活动权益抽奖时间格式错误【HH:mm:ss-HH:mm:ss】"),
    ACTIVITY_VIEW_INFO_ERROR(8011, "活动页面配置内容错误"),
    ACTIVITY_UPPER_LIMIT_ERROR(8012, "活动抽奖次数不能小于2次"),
    ACTIVITY_CODE_ERROR(8013, "活动编码不可重复"),
    ACTIVITY_TASK_ERROR(8014,"活动未关联任务"),

    PULL_NEW_ACTIVITY_SHARE_PAGE_CHECK_FAIL(8015,"拉新活动分享页校验未达标"),
    ACTIVITY_CHECK_ERROR(8016,"检验等级不可重复"),


    SEQ_NO_ERROR(3001, "业务流水号生成发生异常"),

    YTD_ERROR(3002, "盈天地权益对接发生异常"),
    SFT_ERROR(3003, "南大苏富特权益对接发生异常"),
    FILE_UPLOAD_ERROR(4001, "文件上传发生异常"),
    OVERLAP_IMAGE_ERROR(4002, "图片合成发生异常"),
    STATIC_PAGE_ERROR(9001, "静态页面不存在"),
    STATIC_PAGE_QRCODE_ERROR(9002, "生成二维码失败"),
    ;

    private int code;

    private String msg;


    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    private ServiceCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
